
#encoding=UTF-8

from Error import *
from Building import *

class ElixirCollector(Building):
	def __init__(self):
		Building.__init__(self)
		self.url = "http://clashofclans.wikia.com/wiki/Elixir_Collector"
		self.number_available_dsec = """
1	2	3	4	5	6	6	6	6	7
"""
		self.level_info_desc = """
1	150	1m	7	N/A	500	200/hr	400	2h 30m	N/A	1
2	300	5m	17	N/A	1,000	400/hr	450	2h 30m	 5m	 1
3	700	15m	30	N/A	1,500	600/hr	500	2h 30m	 30m	 2
4	1,400	1h	60	N/A	2,500	800/hr	550	3h 7m 30s	 3h	 2
5	3,500	2h	84	4	10,000	1,000/hr	590	10h	 8h	 3
6	7,000	6h	146	5	20,000	1,300/hr	610	15h 23m 5s	20h	3
7	14,000	12h	207	6	30,000	1,600/hr	630	18h 45m	2d 4h	4
8	28,000	1d	293	7	50,000	1,900/hr	660	1d 2h 18m 57s	5d 8h	4
9	56,000	2d	415	8	75,000	2,200/hr	680	1d 10h 5m 28s	12d 16h	5
10	84,000	3d	509	9	100,000	2,500/hr	710	1d 16h	22d	5
11	168,000	4d	587	11	150,000	3,000/hr	750	2d 2h	20d	7
"""
		self._DoParse()

	def _HitPointsIndex(self):
		return 7

	def _BuildCostType(self):
		return 0 #Gold

	def _BuildCostIndex(self):
		return 1

	def _BuildTimeIndex(self):
		return 2

	def _ExperienceGainedIndex(self):
		return 3

	def _TownHallLevelRequiredIndex(self):
		return 10

